<script>
function toggleStatus(id,status,switchId){
        $.ajax({
            type: "POST",
            url: "<?= $this->baseURI(); ?>installation/myhouses/toggle/"+id, 
            data:({status:status}),
            success: function(msg){
                $("#myhouse-listing").load("<?= $this->baseURI(); ?>installation/myhouses/list/"+switchId);
            }
        }); 
    }
</script>
<div class="dataBoxOver">
    <div class="dataInnRep">
        <div class="dataInnTop" id="cabinet-listing">
            <div class="dataInnBottom">

                <div class="dataHeader">
                    <h4>Houses</h4>
                </div>
                <div class="clr"></div>
                <div id="myhouse-listing">
                    <?php echo $this->render('myhouses/list.phtml'); ?>	
                </div>
            </div>	
        </div>
    </div>
</div>
